// A-Carrier Logger

module.exports = {
    i: function(tag, data) {
        console.log(this.log(tag, data, "Info"));
    },
    e: function(tag, data) {
        console.error(this.log(tag, data, "Error"));
    },
    w: function(tag, data) {
        console.warn(this.log(tag, data, "Warning"));
    },
    log: function(tag, data, type) {
        var text = "[" + new Date().toLocaleTimeString() + "][" + type + "][" + tag + "]" + data;
        return text;
    }
}
